// 手牌一
class handPoker extends eui.Component{
    private cardBg:eui.Image;
    public constructor(){
        super();
        this.once(eui.UIEvent.COMPLETE,this.onComplete,this);
        this.skinName = "src/Game/gameRoom/poker/handPokerSkin.exml";
    }
    private onComplete(){
        this.touchChildren = false;
        this.cardBg.visible = false;
        if (this.baotingDi) {
            this.baotingDi.touchEnabled = true;
            this.baotingDi.name = 'baotingDi'
        }
    }
    private pokerValue:eui.Image;
    public baotingDi: eui.Image;
    public setContent(_skinName:string,showBack:boolean=false){
        this.pokerValue.source = _skinName;
        this.showBack (showBack);
    }
    //显示反的
    public showBack(e:boolean = true){
        if(e){
            this.cardBg.visible = true;
        }else{
            this.cardBg.visible = false;
        }
    }
}